#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time    : 2023/3/8 9:36
# @Author  : WuJunQi
# @Email   : 1479652129@qq.com
# @File    : runtest.py
# @Software: PyCharm
import re

image_pattern = r'\.(jpg|png|gif|bmp|mp4|avi|mkv|mov)$'
directory = r'EDASDASDAFKASL;FKLAS'
print(re.search(image_pattern, directory))